﻿<UserControl 
	x:Class="EyeOpen.SilverlightDto.Ui.Sl.MainPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:Data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
	mc:Ignorable="d"
	d:DesignHeight="300" d:DesignWidth="400"
	DataContext="{Binding CustomerListViewModel, Source={StaticResource mainViewModel}}">
	<Grid x:Name="LayoutRoot" Background="White">
		<Data:DataGrid 
			AutoGenerateColumns="False" 
			ItemsSource="{Binding CustomerList}" 
		>
			<Data:DataGrid.Columns>
				<Data:DataGridTextColumn Header="Id" Binding="{Binding Id}" />
				<Data:DataGridTextColumn Header="First name" Binding="{Binding FirstName}" />
				<Data:DataGridTextColumn Header="Age" Binding="{Binding Age}" />
				<Data:DataGridTextColumn Header="City" Binding="{Binding City}" />
			</Data:DataGrid.Columns>
		</Data:DataGrid>
	</Grid>
</UserControl>